﻿using System;

namespace VisualWip.PresentationModel
{
    public class AgeInDaysConverter : AgeConverterBase
    {
        public AgeInDaysConverter()
        {
        }

        public AgeInDaysConverter(Func<DateTime> now) : base(now)
        {
        }

        protected override bool Calculate(DateTime date, int value)
        {
            return Now.Subtract(date).TotalDays >= value;
        }
    }
}